package org.itboys.admin.entity.lasted;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.itboys.mongodb.entity.BaseMongoEntity;
import org.itboys.mongodb.entity.BaseMySqlEntity;
import org.mongodb.morphia.annotations.Entity;

import java.io.Serializable;
import java.util.List;


/**
 * 包名：com.hz.sunday.tianjie.org.itboys.mobile.entity.mysql.product
 * 作者 : 江雄
 * Email: empty90911@126.com
 * 时间：2016年3月10日 下午2:52:46 
 * 描述:圣代_省（直辖市）/市/区or县/街道or乡镇_实体。四级行政区划
 *
 *
 */

public class SundayArea implements Serializable {
	private Long id;
	@JsonIgnore
	private Long parentId;//父ID
	private String name;
	private Integer level;//1,省或直辖市，2，市，3区县，4，街道或乡镇
	private List<SundayArea> children;



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	/*public Integer getUseType() {
		return useType;
	}
	public void setUseType(Integer useType) {
		this.useType = useType;
	}*/
	public List<SundayArea> getChildren() {
		return children;
	}
	public void setChildren(List<SundayArea> children) {
		this.children = children;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}

}
